﻿@using EMRI.EmergencyCare.Web.Helper
@model EMRI.EmergencyCare.Web.Helper.PatientDetailsViewModel
<fieldset>
    <legend>PatientCareRecord</legend>
    <table>
        <tr>
            <td>
                @Html.LabelFor(m => m.Patient.Location)
                @Html.TextBoxFor(m => m.Patient.Location, new { @maxlength = "200", @readonly = true })
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.BeforeCare)
                @Html.DropDownListFor(m => m.PatientDetails.BeforeCare, new SelectList(MasterDataHelper.GetCareBeforeEmRoomArrival()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Vehicle)
                @Html.DropDownListFor(m => m.PatientDetails.Vehicle, new SelectList(MasterDataHelper.GetBroughtBy()))
            </td>
            <td>
                @Html.LabelFor(m => m.Patient.TypeOfEmergency)
                @Html.DropDownListFor(m => m.Patient.TypeOfEmergency, new SelectList(MasterDataHelper.GetEmergencyTypes()))
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.CauseOfEmergency)
                @Html.DropDownListFor(m => m.PatientDetails.CauseOfEmergency, new SelectList(MasterDataHelper.GetCauseEmergency()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.MechanismOfInjury)
                @Html.DropDownListFor(m => m.PatientDetails.MechanismOfInjury, new SelectList(MasterDataHelper.GetMechanismInjury()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.IncidentLocation)
                @Html.DropDownListFor(m => m.PatientDetails.IncidentLocation, new SelectList(MasterDataHelper.GetIncidentLocation()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.MCI)
                @Html.DropDownListFor(m => m.PatientDetails.MCI, new SelectList(MasterDataHelper.GetMCI()))
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Anatomical)
                @Html.DropDownListFor(m => m.PatientDetails.Anatomical, new SelectList(MasterDataHelper.GetAnatomical()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Age)
                @Html.TextBoxFor(m => m.PatientDetails.Age, new { @maxlength = "50" })
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Sex)
                @Html.DropDownListFor(m => m.PatientDetails.Sex, new SelectList(Enum.GetNames(typeof(EMRI.EmergencyCare.Web.Models.Gender))))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Contact)
                @Html.TextBoxFor(m => m.PatientDetails.Contact, new { @maxlength = "50" })
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.District)
                @Html.DropDownListFor(m => m.PatientDetails.District, new SelectList(MasterDataHelper.GetDistricts(), "ID", "Name"), new { @id = "district" })
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Taluk)
                @Html.ExtendedDropDownListFor(m => m.PatientDetails.Taluk, MasterDataHelper.GetTaluks().Select(
                    t => new ExtendedSelectListItem() { Value = t.ID.ToString(), Text = t.Name, htmlAttributes = new { @districtid = t.DistritID } })
                        , "", new { @id = "taluk" })
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.City)
                @Html.ExtendedDropDownListFor(m => m.PatientDetails.City, MasterDataHelper.GetCity().Select(
                    t => new ExtendedSelectListItem() { Value = t.ID.ToString(), Text = t.Name, htmlAttributes = new { @talukid = t.TalukID } })
                        , "", new { @id = "city" })
            </td>
            <td>
                @Html.LabelFor(m => m.Patient.Doctor)
                @Html.DropDownListFor(m => m.Patient.Doctor, new SelectList(MasterDataHelper.GetDoctorlist()))
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.SocialHabits)
                @Html.DropDownListFor(m => m.PatientDetails.SocialHabits, new SelectList(MasterDataHelper.GetSocialHabit()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.ChiefComplaint)
                @Html.DropDownListFor(m => m.PatientDetails.ChiefComplaint, new SelectList(MasterDataHelper.GetChiefComplaint()))
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.IncidentNarration)
                @Html.TextBoxFor(m => m.PatientDetails.IncidentNarration, new { @maxlength = "500" })
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Synopsis.Attender)
                @Html.TextBoxFor(m => m.PatientDetails.Synopsis.Attender, new { @maxlength = "100" })
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Synopsis.Attender)
                @Html.TextBoxFor(m => m.PatientDetails.Synopsis.Attender, new { @maxlength = "150" })
            </td>
        </tr>
    </table>
    @Html.HiddenFor(m => m.PatientDetails.InitialAssesment.PatientId)
    <table>
        <tr>
            <td style="width: 10%;">LOC :
            </td>
            <td colspan="3" style="width: 70%;">
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsAlert)
                @Html.CheckBoxFor(m => m.PatientDetails.InitialAssesment.IsAlert)
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsVerbal)
                @Html.CheckBoxFor(m => m.PatientDetails.InitialAssesment.IsVerbal)
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsPain)
                @Html.CheckBoxFor(m => m.PatientDetails.InitialAssesment.IsPain)
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsUnresponsive)
                @Html.CheckBoxFor(m => m.PatientDetails.InitialAssesment.IsUnresponsive)
            </td>
            <td style="width: 20%;">
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.Locintervention)
                @Html.TextBoxFor(m => m.PatientDetails.InitialAssesment.Locintervention)
            </td>
        </tr>
        <tr>
            <td>Airway :
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.HasPatentAirway)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.HasPatentAirway, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.HasPatentAirway, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsAbnormalSoundsAirway)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsAbnormalSoundsAirway, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsAbnormalSoundsAirway, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsFluidsAirway)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsFluidsAirway, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsFluidsAirway, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.AirwayIntervention)
                @Html.TextBoxFor(m => m.PatientDetails.InitialAssesment.AirwayIntervention)
            </td>
        </tr>
        <tr>
            <td>Breathing :
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.HasBreathing)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.HasBreathing, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.HasBreathing, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsBreathingRateNormal)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsBreathingRateNormal, "true")
                <label class="value">
                    Normal</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsBreathingRateNormal, "false")
                <label class="value">
                    Abnormal</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.IsBreathingAdequate)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsBreathingAdequate, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.IsBreathingAdequate, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.BreathingIntervention)
                @Html.TextBoxFor(m => m.PatientDetails.InitialAssesment.BreathingIntervention)
            </td>
        </tr>
        <tr>
            <td>
                <label>
                    Circulation :
                </label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.Circulation)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.Circulation, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.Circulation, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.CirculationRateNormal)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.CirculationRateNormal, "true")
                <label class="value">
                    Normal</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.CirculationRateNormal, "false")
                <label class="value">
                    Abnormal</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.CirculationRegular)
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.CirculationRegular, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.InitialAssesment.CirculationRegular, "false")
                <label class="value">
                    No</label>
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.InitialAssesment.CirculationIntervention)
                @Html.TextBoxFor(m => m.PatientDetails.InitialAssesment.CirculationIntervention)
            </td>
        </tr>
    </table>
    @Html.HiddenFor(m => m.PatientDetails.DetailedAssesment.PatientId)
    <table>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsHead)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsHead)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HeadDesc)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistorySigns)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistorySigns)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsNeck)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsNeck)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.NeckDesc)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistorySymptoms)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistorySymptoms)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsChest)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsChest)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.ChestDesc)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryOpq)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryOpq)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsLungs)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsLungs)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.LungsDesc)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryRst)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryRst)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsAbdomen)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsAbdomen)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.AbdomenDesc)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryAllergies)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryAllergies)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsPelvis)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsPelvis)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.PelvisDesc)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryMedications)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryMedications)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsExtemities)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsExtemities)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.IsExtemities)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryPastIllness)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryPastIllness)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsBack)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsBack)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.BackDesc)
            </td>
            <td>
                @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryEvents)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryEvents)
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.DetailedAssesment.IsNeuro)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.IsNeuro)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.NeuroDesc)
            </td>
            <td>@Html.LabelFor(m => m.PatientDetails.DetailedAssesment.HistoryLastOralIntake)
            </td>
            <td>@Html.TextBoxFor(m => m.PatientDetails.DetailedAssesment.HistoryLastOralIntake)
            </td>
        </tr>
        <tr>
            <td colspan="5">
                <table class="showborder">
                    <tr>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Time))
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Pulse)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Respirations)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().BloodPressure)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Spo2)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().PupilsR)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().PupilsL)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Caprefill)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Grbs)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Temp)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.DetailedAssesment.Readings.First().Gcs)
                        </th>
                    </tr>
                    @Html.EditorFor(m => m.PatientDetails.DetailedAssesment.Readings)
                </table>
            </td>
        </tr>
    </table>

    @Html.HiddenFor(m => m.PatientDetails.Investigation.PatientId)
    <table>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Ecg)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.Ecg)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Xray)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.Xray)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Blood)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.Blood)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.PCR)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.PCR)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Photos1)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.Photos1)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Photos2)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.Photos2)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Others)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Investigation.Others)
            </td>
            <td>
                <input type="file" name="FileUload" />
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Investigation.Pregnancy)
            </td>
            <td colspan="2">
                @Html.RadioButtonFor(m => m.PatientDetails.Investigation.Pregnancy, "true")
                <label>
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.Investigation.Pregnancy, "false")
                <label>
                    No</label>
                &nbsp;&nbsp;&nbsp;&nbsp;
                @Html.LabelFor(m => m.PatientDetails.Investigation.G)
                @Html.CheckBoxFor(m => m.PatientDetails.Investigation.G)
                @Html.LabelFor(m => m.PatientDetails.Investigation.P)
                @Html.CheckBoxFor(m => m.PatientDetails.Investigation.P)
                @Html.LabelFor(m => m.PatientDetails.Investigation.L)
                @Html.CheckBoxFor(m => m.PatientDetails.Investigation.L)
                @Html.LabelFor(m => m.PatientDetails.Investigation.D)
                @Html.CheckBoxFor(m => m.PatientDetails.Investigation.D)
                @Html.LabelFor(m => m.PatientDetails.Investigation.A)
                @Html.CheckBoxFor(m => m.PatientDetails.Investigation.A)
            </td>
        </tr>
    </table>
    @Html.HiddenFor(m => m.PatientDetails.Treatment.PatientId)
    <table>
        <tr>
            <td style="width: 40%;">
                <h5>
                    @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines)</h5>
                <table class="showborder">
                    <tr>
                        <th>
                            <label>
                                Gauge
                            </label>
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines.First().Site)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines.First().Attempt)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.LifeLines.First().Success)
                        </th>
                    </tr>
                    @Html.EditorFor(m => m.PatientDetails.Treatment.LifeLines)
                </table>
            </td>
            <td rowspan="3" style="width: 60%;">
                <table class="showborder">
                    <tr>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.TreatmentDetails.First().Time)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.TreatmentDetails.First().Interventions)
                        </th>
                        <th>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.TreatmentDetails.First().Response)
                        </th>
                    </tr>
                    @Html.EditorFor(m => m.PatientDetails.Treatment.TreatmentDetails)
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <h5>
                    <label>
                        O2, Ventlations</label></h5>
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2Facemask)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Facemask)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2Nrbm)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Nrbm)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2NasalCannula)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2NasalCannula)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.O2Others)
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Others)
                &nbsp;&nbsp;&nbsp;&nbsp;
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Time)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.O2Time, new { @class = "shortTxt" })
                @Html.LabelFor(m => m.PatientDetails.Treatment.O2Lpm)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.O2Lpm, new { @class = "shortTxt" })
            </td>
        </tr>
        <tr>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.VentilatorMechanical)
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorMechanical)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.VentilatorBagMask)
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorBagMask)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.VentilatorOthers)
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorOthers)
                &nbsp;&nbsp;&nbsp;&nbsp;
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorMode)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.VentilatorMode, new { @class = "shortTxt" })
                @Html.LabelFor(m => m.PatientDetails.Treatment.VentilatorRate)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.VentilatorRate, new { @class = "shortTxt" })
                <label class="value">
                    (Min)</label>
            </td>
        </tr>
        <tr>
            <td>
                <h5>
                    <label>
                        Others</label>
                </h5>
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Woundcare)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Woundcare)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Suturing)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Suturing)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Splinting)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Splinting)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Smrd)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Smrd)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.BleedingControl)
                @Html.LabelFor(m => m.PatientDetails.Treatment.BleedingControl)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Ccollar)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Ccollar)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Aed)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Aed)
                @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Cpr)
                @Html.LabelFor(m => m.PatientDetails.Treatment.Cpr)
                @Html.TextBoxFor(m => m.PatientDetails.Treatment.CprDesc, new { @class = "shortTxt" })
            </td>
            <td>
                <h5>
                    <label>
                        Airway Management</label></h5>
                <table class="showborder">
                    <tr>
                        <th>
                            <label>
                                Procedure</label>
                        </th>
                        <th>
                            <label>
                                Size</label>
                        </th>
                        <th>
                            <label>
                                Success</label>
                        </th>
                        <th>
                            <label>
                                Time</label>
                        </th>
                        <th>
                            <label>
                                #Attempt</label>
                        </th>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.Suction)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.Suction)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.SuctionSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.SuctionSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.SuctionSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.SuctionTime)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.SuctionAttempt)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.OpaNpa)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.OpaNpa)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.OpaNpaSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.OpaNpaSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.OpaNpaSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.OpaNpaTime)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.OpaNpaAttempt)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.EtNt)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.EtNt)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.EtNtSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.EtNtSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.EtNtSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.EtNtTime)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.EtNtAttempt)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.CheckBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthers)
                            @Html.LabelFor(m => m.PatientDetails.Treatment.AirwayMgmtOthers)
                        </td>
                        <td>@Html.TextBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersSize)
                        </td>
                        <td>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersSuccess, "true")
                            <label class="value">
                                Yes</label>
                            @Html.RadioButtonFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersSuccess, "false")
                            <label class="value">
                                No</label>
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersTime)
                        </td>
                        <td>
                            @Html.TextBoxFor(m => m.PatientDetails.Treatment.AirwayMgmtOthersAttempt)
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table>
                    <tr>
                        <td>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.Advice)
                        </td>
                        <td>
                            @Html.TextAreaFor(m => m.PatientDetails.Treatment.Advice)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            @Html.LabelFor(m => m.PatientDetails.Treatment.Summary)
                        </td>
                        <td>
                            @Html.TextAreaFor(m => m.PatientDetails.Treatment.Summary)
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    @Html.HiddenFor(m => m.PatientDetails.Synopsis.PatientId)
    <table>
        <tr>
            <td>
                <label>
                    Status During Discharge:
                </label>
            </td>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.HasImproved)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.HasImproved)
                @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.IsStatusQuo)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.IsStatusQuo)
                @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.IsDeterioated)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.IsDeterioated)
                @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.IsDeath)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.IsDeath)
            </td>
        </tr>
        <tr>
            <td>
                <label>
                    Dispositon :
                </label>
            </td>
            <td>
                @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.IsDischarged)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.IsDischarged)
                @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.IsAdmitted)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.IsAdmitted)
                @* @Html.CheckBoxFor(m => m.PatientDetails.Synopsis.IsReferred)
                @Html.LabelFor(m => m.PatientDetails.Synopsis.IsReferred)
                &nbsp; &nbsp;
                @Html.LabelFor(m => m.PatientDetails.Synopsis.Details)
                @Html.TextBoxFor(m => m.PatientDetails.Synopsis.Details)*@
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @* @Html.LabelFor(m => m.PatientDetails.Synopsis.IsCritical)
                @Html.RadioButtonFor(m => m.PatientDetails.Synopsis.IsCritical, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.Synopsis.IsCritical, "false")
                <label class="value">
                    No</label>*@
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Synopsis.MedicalDisposables):
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Synopsis.MedicalDisposables)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.Patient.Doctor)
            </td>
            <td>
                @Html.TextBoxFor(m => m.Patient.Doctor)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Synopsis.Attender)
            </td>
            <td>
                @Html.TextAreaFor(m => m.PatientDetails.Synopsis.Attender)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Synopsis.ParamedicId)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.Synopsis.ParamedicId)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(m => m.PatientDetails.Synopsis.Name)
            </td>
            <td>
                @Html.TextBoxFor(m => m.PatientDetails.Synopsis.Name)
            </td>
        </tr>
        <tr>
            <td>@Html.LabelFor(m => m.PatientDetails.Synopsis.IsAlive)
            </td>
            <td>
                @Html.RadioButtonFor(m => m.PatientDetails.Synopsis.IsAlive, "true")
                <label class="value">
                    Yes</label>
                @Html.RadioButtonFor(m => m.PatientDetails.Synopsis.IsAlive, "false")
                <label class="value">
                    No</label>
            </td>
        </tr>
    </table>
</fieldset>
